//
//  ZHLayoutMacros.h
//  ZYT_IOS
//
//  Created by 正合适 on 2018/1/29.
//  Copyright © 2018年 正合适. All rights reserved.
//

#ifndef ZHLayoutMacros_h
#define ZHLayoutMacros_h
// 16进制颜色
#define ZH16RGBColor(rgbValue) \
[UIColor colorWithRed:((float)((rgbValue & 0xFF0000) >> 16)) / 255.0 \
green:((float)((rgbValue & 0xFF00) >> 8)) / 255.0 \
blue:((float)(rgbValue & 0xFF)) / 255.0 alpha:1.0]

#define ZHRGBAColor_16(hexValue) [UIColor colorWithRed:((float)((hexValue & 0xFF0000) >> 16)) / 255.0 green:((float)((hexValue & 0xFF00) >> 8)) / 255.0 blue:((float)(hexValue & 0xFF)) / 255.0 alpha:1.0f]
#define ZHRGBAColor(r,g,b,a) [UIColor colorWithRed:(r)/255.0f green:(g)/255.0f blue:(b)/255.0f alpha:a]
#define ZHRGBColor(r,g,b)    ZHRGBAColor((r),(g),(b),1)
#define ZHWhiteColor         [UIColor whiteColor]
#define ZHBlackColor         [UIColor blackColor]
#define ZHGrayColor          [UIColor grayColor]
#define ZHRedColor           [UIColor redColor]
#define ZHGreenColor         [UIColor greenColor]
#define ZHBlueColor          [UIColor blueColor]
#define ZHCyanColor          [UIColor cyanColor]
#define ZHMagentaColor       [UIColor magentaColor]
#define ZHYellowColor        [UIColor yellowColor]
#define ZHClearColor         [UIColor clearColor]

#pragma mark - ---------- 尺寸类 ----------
#define ZHScreenWidth        [UIScreen mainScreen].bounds.size.width
#define ZHScreenHeight       [UIScreen mainScreen].bounds.size.height

#pragma mark - ---------- 字体类 ----------
#define ZHFont(a)            [UIFont systemFontOfSize:(a)]

#pragma mark - ---------- 图片类 ----------
#define ZHUIImage(imgStr)           [UIImage imageNamed:(imgStr)]

#endif /* ZHLayoutMacros_h */
